<div class="cart">
	 {{#if user.cart_detail.length}}
	 	{{#each user.cart_detail}}
			 {{#each goods_info}}
			 <div class="cartitem">
				 <a target="_blank" href="#default/detail?id={{goods_id}}">
					 <img bind-src="{{goods.preview_img_url}}?imagesView/2/h/100/w/100" />
				 </a>
				 <div class="text">
					 <a target="_blank" href="#default/detail?id={{goods_id}}">
						 <div class="title">{{goods.goods_name}}</div>
						 <div class="intro">{{goods.intro}}</div>
					 </a>
				 </div>
				 <div class="num">
					 <input event-change="{{'$Top.$Event.cart.update_cart_num'}}" min=1 max="{{max_num}}" value="{{num}}" bind-input="{{'num'}}" type="number" />
				 </div>
				 <div class="price">
					 单价：<span class="price_num">￥{{goods.price}}</span>
				 </div>
				 <div class="method">
					 <a event-click="{{'$Top.$Event.cart.remove_goods'}}" class="remove">
					 	删除
					 </a>
				 </div>
			 </div>
			 {{/each}}
		{{/each}}
	 {{#else}}
	 <div class="none">购物车还没有添加任何商品</div>
	 {{/if}}
</div>
{{#if user.cart_detail.length}}
<div class="carttotal">
	<span>商品总计：<a>{{#Fixed $Cache.moni_ach.sou_cash}}</a></span>
	<span>优惠：<a>{{#Fixed $Cache.moni_ach.sou_cash-$Cache.moni_ach.cash}}</a></span>
	<span>应付金额：<a>{{#Fixed $Cache.moni_ach.cash}}</a></span>
	<button event-click="{{'$Event.cart.cart_to_ach'}}">去结算</button>
</div>
{{/if}}
<link rel="stylesheet" type="text/css" href="/css/catering/pc_cart.css" />